home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / barcodes.zip / SAMPLE1.ZIP / BARDOC.H < prev    next >
C/C++ Source or Header  |  1994-11-07  |  1KB  |  58 lines

  1. // bardoc.h : interface of the CBarDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. // (c) Copyright 1994 HEX TECHNOLOGY. All rights reserved.
  6. // This sample code is provided as a example implementation
  7. // using barcodes.dll.  You may only distribute or modify this
  8. // code if you purchase a license for barcodes.dll.
  9.  
  10.  
  11. class CBarDoc : public CDocument
  12. {
  13. protected: // create from serialization only
  14.     CBarDoc();      
  15.     DECLARE_DYNCREATE(CBarDoc)
  16.  
  17. // Attributes
  18. public: 
  19.  
  20.     CString m_sData;
  21.     CString m_sText;
  22.     WORD m_iDisplayFlags;
  23.     CString m_sFontFace;
  24.     BOOL m_bBold;
  25.     BOOL m_bItalic;
  26.     COLORREF m_cBarColor;
  27.     COLORREF m_cBackgroundColor;  
  28.     WORD m_iStyle;  
  29.     WORD m_iRatio;
  30.     WORD m_iFontAdjust;
  31.     WORD m_iHeight;
  32.     WORD m_iWidth;
  33. // Operations
  34. public:
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CBarDoc();
  39.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.     virtual BOOL OnNewDocument();
  47.  
  48. // Generated message map functions
  49. protected:
  50.     //{{AFX_MSG(CBarDoc)
  51.         // NOTE - the ClassWizard will add and remove member functions here.
  52.         //    DO NOT EDIT what you see in these blocks of generated code !
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58.